package com.example.filesystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author bbyh
 * @since 2025-04-29
 */
@Getter
@Setter
public class Share implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分享id
     */
    @TableId(value = "share_id", type = IdType.AUTO)
    private Integer shareId;

    /**
     * 分享用户id
     */
    private Integer userId;

    /**
     * 分享文件id
     */
    private Integer fileId;

    /**
     * 分享码
     */
    private String shareCode;

    /**
     * 分享时间
     */
    private LocalDateTime createTime;

    /**
     * 下载次数
     */
    private Integer downloadTimes;

    /**
     * 失效时间
     */
    private LocalDateTime invalidTime;
}
